package com.example.demo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RestController;




/**
 * Copyfright(C),2022-2022,复兴元宇科技有限公司
 * FileName:GetPersonInfoProperties
 * Author:yz
 * Date:2022/3/10 11:45 上午
 * Description:
 * History:
 * <author>  <time> <version> <desc>
 * 作者       时间    版本      描述
 */
@RestController
@Component
@ConfigurationProperties(prefix = "personinfo")
    public class GetPersonInfoProperties {
    private int age;
    private String name;
    private String info;

    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setInfo(String info) {
        this.info = info;
    }

    public String getInfo() {
        return info;
    }

}


